package {{.pkgName}}

import (
	"github.com/gin-gonic/gin"

	{{.import}}
)

type {{.handle}} struct {
    svcCtx *svc.ServiceContext
    {{.logics}}
}

func New{{.handle}}(svcCtx *svc.ServiceContext{{.newLogicsParam}}) *{{.handle}} {
	return &{{.handle}}{
	    svcCtx: svcCtx,
	    {{.newLogicsFields}}
	}
}

func (h *{{.handle}}) InitRegister(engine *gin.Engine) {
	{{.handleRouteList}}
}

{{.methods}}
